var Code;
(function (Code) {
    Code[Code["SUCCESS"] = 200] = "SUCCESS";
    Code[Code["ERROR"] = 201] = "ERROR";
})(Code || (Code = {}));
// 响应状态码
var Status;
(function (Status) {
    Status[Status["SUCCESS"] = 200] = "SUCCESS";
    Status[Status["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
    Status[Status["FORBIDDEN"] = 403] = "FORBIDDEN";
    Status[Status["NOT_FOUND"] = 404] = "NOT_FOUND";
    Status[Status["ERROR"] = 500] = "ERROR";
})(Status || (Status = {}));
Status.SUCCESS; // 200
Status["SUCCESS"]; // 200
Status[200]; // SUCCESS
// 以下4种请求方式代表对服务端数据的不同操作 CRUD 增删改查
// restful风格设计的API接口
var Method;
(function (Method) {
    Method[Method["GET"] = 0] = "GET";
    Method[Method["POST"] = 1] = "POST";
    Method[Method["PUT"] = 2] = "PUT";
    Method[Method["DELETE"] = 3] = "DELETE";
})(Method || (Method = {}));
Method.GET; // 0
Method.POST; // 1
Method[0]; // GET
